<form nz-form nzLayout="inline">
  <nz-form-item>
    <nz-form-label>Auto </nz-form-label>
    <nz-form-control>
      <nz-input-group nzCompact>
        <nz-select
          [(ngModel)]="ms.game.automationManager.autoInfrastructure.autoBuyType"
          class="auto-type"
          nzSize="small"
          name="infraAutoBuyer"
          (ngModelChange)="buildingAutoBuyChange()"
        >
          <nz-option
            nzLabel="Off"
            [nzValue]="InfrastructureAutoBuyTypes.OFF"
          ></nz-option>
          <nz-option
            nzLabel="Best ratio"
            [nzValue]="InfrastructureAutoBuyTypes.BEST_RATIO"
          ></nz-option>
          <nz-option
            nzLabel="Cheap"
            [nzValue]="InfrastructureAutoBuyTypes.CHEAP"
          ></nz-option>
          <nz-option
            nzLabel="Most Bonus"
            [nzValue]="InfrastructureAutoBuyTypes.MOST_BONUS"
          ></nz-option>
        </nz-select>
        <nz-select
          nzSize="small"
          class="autoTime"
          [(ngModel)]="ms.game.automationManager.autoInfrastructure.interval"
          name="autoInfrastructureI"
        >
          <nz-option nzLabel="0.1 sec" [nzValue]="zeroSec"></nz-option>
          <nz-option
            *ngFor="let interval of INTERVALS; trackBy: getIntervalId"
            [nzLabel]="interval.label"
            [nzValue]="interval.value"
          ></nz-option>
        </nz-select>
      </nz-input-group>
    </nz-form-control>
  </nz-form-item>

  <nz-form-item>
    <nz-form-label>Queue length </nz-form-label>
    <nz-input-number
      nzSize="small"
      nzMax="10"
      nzMin="0"
      name="queue-infra"
      [(ngModel)]="ms.game.automationManager.autoInfrastructure.queueLength"
    ></nz-input-number>
  </nz-form-item>
</form>
